﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Web.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<MVCWeb.Models.WebmasterModel>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Block User Information
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>ShowMeBlockUser</h2>

    <table>
             <tr>

            <th>Control Options</th>
            <th>
                Customer ID
            </th>
            <th>
                E Mail
            </th>
            <th>
                First Name
            </th>
            <th>
                Last Name
            </th>
            <th>
                Address
            </th>
            <th>
                City
            </th>
            <th>
                State
            </th>
            <th>
                Zip
            </th>
            <th>
                Permission
            </th>
            <th>
                Blockuser
            </th>
        </tr>
    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
               <%: Html.ActionLink("Block", "BlockUser", new { id = item.customer_id })%> |
                <%: Html.ActionLink("UnBlock", "UnblockUser", new { id = item.customer_id })%> |
                <%: Html.ActionLink("Delete", "DeleteCustomer", new { id = item.customer_id })%>
               <br> <%: Html.ActionLink("Change Permission", "ChangePermission", new { id = item.customer_id })%>
            </td>
            <td>
                <%: item.customer_id %>
            </td>
            <td>
                <%: item.email %>
            </td>
            <td>
                <%: item.first_name %>
            </td>
            <td>
                <%: item.last_name %>
            </td>
            <td>
                <%: item.address %>
            </td>
            <td>
                <%: item.city %>
            </td>
            <td>
                <%: item.state %>
            </td>
            <td>
                <%: item.zip %>
            </td>
            <td>
                <%: item.permission %>
            </td>
            <td>
                <%: item.blockuser %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Create New", "Create") %>
    </p>

</asp:Content>

